#
# Be sure to run `pod lib lint podAlipay.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'podAlipay'
  s.version          = '0.1.2'
  s.summary          = 'A short description of podAlipay.'

  s.description      = 'podAlipay'

  s.homepage         = 'https://gitee.com/zackzhang/EkayComponents'
  s.license          = { :type => 'MIT', :text => 'xxx' }
  s.author           = { 'zwc' => 'zhangwenchao@eakay.cn' }
  s.source           = { :git => 'https://gitee.com/zackzhang/EkayComponents.git'} #, :tag => s.version.to_s

  s.ios.deployment_target = '8.0'

  s.source_files = 'podAlipay/Classes/*'
  # s.public_header_files = 'Pod/*.h', 'Pod/Util/*.h', 'Pod/Frameworks/AlipaySDK.framework/Headers/*.h'
  s.public_header_files = 'podAlipay/Classes/*.h', 'podAlipay/Classes/Util/*.h', 'podAlipay/libs/AlipaySDK.framework/Headers/*.h'
  s.resources    = 'podAlipay/Assets/*.{bundle}'
  s.vendored_frameworks = 'podAlipay/libs/AlipaySDK.framework'
  s.vendored_libraries = 'podAlipay/libs/*.a'

  s.subspec 'Util' do |u|
    u.source_files = 'podAlipay/Classes/Util'
  end

  s.libraries = 'z', 'c++'
  s.frameworks = 'Security', 'CoreMotion', 'CFNetwork', 'CoreTelephony', 'SystemConfiguration'

  s.dependency 'openssl'

  s.pod_target_xcconfig = {
      # 'FRAMEWORK_SEARCH_PATHS'   => '$(inherited) $(PODS_ROOT)/BaiduMapKit/BaiduMapKit',
      # 'LIBRARY_SEARCH_PATHS'     => '$(inherited) $(PODS_ROOT)/BaiduMapKit/BaiduMapKit/thirdlibs',
      # 'OTHER_LDFLAGS'            => '$(inherited) -undefined dynamic_lookup -ObjC',
      'ENABLE_BITCODE'           => 'NO'
  }


  # s.subspec 'hhaha' do |ss|
  #   ss.source_files = 'podAlipay/libs/AlipaySDK.framework/Headers/**.h'
  #   ss.public_header_files = 'podAlipay/libs/AlipaySDK.framework/Headers/**.h'
  # end


  # s.prepare_command = <<-EOF

  # rm -rf podAlipay/libs/AlipaySDK.framework/Modules
  #   mkdir podAlipay/libs/AlipaySDK.framework/Modules
  #   touch podAlipay/libs/AlipaySDK.framework/Modules/module.modulemap
  #   cat <<-EOF > podAlipay/libs/AlipaySDK.framework/Modules/module.modulemap
  #   framework module hahhahha {
  #     umbrella header "AlipaySDK.h"
  #     export *
  #   }

  # EOF


end
